package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Objects;

/**
 * (Querydakamingxiandbydatebymac)实体类
 *
 * @author makejava
 * @since 2020-04-16 16:54:39
 */
public class Querydakamingxiandbydatebymac implements Serializable {
    private static final long serialVersionUID = 146993964910072352L;
    /**
    * id
    */
    private Integer uId;
    /**
    * 账号
    */
    private String account;
    /**
    * 打卡获取时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Object swtime;
    /**
    * 下班打卡时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Object ewtime;
    /**
    * 第一次打卡时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Object clockin;
    /**
    * 最后一次下班打卡时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Object clockout;
    /**
    * 设备id
    */
    private String deviceid;
    /**
    * 站点id
    */
    private String siteid;
    /**
     * 站点id
     */
    private String sitename;

    public String getSitename() {
        return sitename;
    }

    public void setSitename(String sitename) {
        this.sitename = sitename;
    }

    /**
    * mac地址
    */
    private String mac;
    /**
    * 打卡日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Object cDate;
    /**
    * 姓名
    */
    private String uname;
    /**
     * 周几
     */
    private String dayOfWeek;

    public String getDayOfWeek() {
        return dayOfWeek;
    }

    public void setDayOfWeek(String dayOfWeek) {
        this.dayOfWeek = dayOfWeek;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public Object getSwtime() {
        return swtime;
    }

    public void setSwtime(Object swtime) {
        this.swtime = swtime;
    }

    public Object getEwtime() {
        return ewtime;
    }

    public void setEwtime(Object ewtime) {
        this.ewtime = ewtime;
    }

    public Object getClockin() {
        return clockin;
    }

    public void setClockin(Object clockin) {
        this.clockin = clockin;
    }

    public Object getClockout() {
        return clockout;
    }

    public void setClockout(Object clockout) {
        this.clockout = clockout;
    }

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public String getSiteid() {
        return siteid;
    }

    public void setSiteid(String siteid) {
        this.siteid = siteid;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public Object getcDate() {
        return cDate;
    }

    public void setcDate(Object cDate) {
        this.cDate = cDate;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Querydakamingxiandbydatebymac)) return false;
        Querydakamingxiandbydatebymac that = (Querydakamingxiandbydatebymac) o;
        return getuId().equals(that.getuId()) &&
                Objects.equals(getAccount(), that.getAccount()) &&
                Objects.equals(getSwtime(), that.getSwtime()) &&
                Objects.equals(getEwtime(), that.getEwtime()) &&
                Objects.equals(getClockin(), that.getClockin()) &&
                Objects.equals(getClockout(), that.getClockout()) &&
                Objects.equals(getDeviceid(), that.getDeviceid()) &&
                Objects.equals(getSiteid(), that.getSiteid()) &&
                Objects.equals(getSitename(), that.getSitename()) &&
                Objects.equals(getMac(), that.getMac()) &&
                Objects.equals(getcDate(), that.getcDate()) &&
                getUname().equals(that.getUname()) &&
                Objects.equals(getDayOfWeek(), that.getDayOfWeek());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getuId(), getAccount(), getSwtime(), getEwtime(), getClockin(), getClockout(), getDeviceid(), getSiteid(), getSitename(), getMac(), getcDate(), getUname(), getDayOfWeek());
    }

}